package com.md.service;

import com.md.entity.DeptInfo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface DeptService {

    List<DeptInfo> selectAll();

    DeptInfo selectById(int did);

    int deleteById(int did);

    int inserts(DeptInfo deptInfo);

    int updates(DeptInfo deptInfo);

    List<DeptInfo> selectByName(String dname);
}
